﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;


public class LoginPanelView : MonoBehaviour
{
	public InputField input_name;
	public InputField input_passwd;

	public GameObject btn_login;
	public GameObject btn_register;

	// Use this for initialization
	void Awake()
	{
		input_name.text = "wuzhang";
		input_passwd.contentType = InputField.ContentType.Password;
		input_passwd.text = "123456";

		EventTriggerListener.GetListener(btn_login).onPointerClick += go => 
		{
			Debug.Log("Login Click");
			if (LoginGuid.GuidCallback != null)
				LoginGuid.GuidCallback();
		};
		EventTriggerListener.GetListener(btn_register).onPointerClick += go => { Debug.Log("Register Click"); };
	}

	
}
